package com.prothink.threadproject.zuoye;

import redis.clients.jedis.Jedis;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class RedisTest {
    private static Jedis jedis = new Jedis("47.97.59.143",6379);
    public static void main(String[] args) {

//        jedis.set("","臭狗");
//        System.out.println(jedis.smembers("meijia"));

        System.out.println(jedis.get("meijia"));
        jedis.close();
    }
    public void set(String key,String value){
        jedis.set(key,value);
    }
    public String get(String key){
        return jedis.get(key);
    }
    public String smembers1(String key){
        return jedis.smembers(key).toString();
    }
}
